<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文章管理</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" crossorigin="anonymous">
</head>
<body>
    <div style="width: 300px;margin: 10px;">
        <form action="">
            <input type="text" placeholder="请输入搜索条件" name="search">
            <button type="submit">搜索</button>
        </form>
    </div>
    <div style="margin: 30px;">
        <h5><a href="/month/essays/add">去添加</a> <a href="/month/essays/recycle">回收站</a></h5>
        <table class="table">
            <tr>
                <th scope="col">id</th>
                <th scope="col">文章标题</th>
                <th scope="col">文章图片</th>
                <th scope="col">文章状态</th>
                <th scope="col">操作</th>
            </tr>
            {volist name="data" id="v"}
                <tr>
                    <th scope="row">{$v.id}</th>
                    <td>{$v.title}</td>
                    <td><img src="http://www.pyg.com/{$v.img}" width="60px"></td>
                    <td>{$v.state}</td>
                    <td>
                        <a href="del?id={$v.id}">删除</a>
                        <a href="edit?id={$v.id}">编辑</a>
                    </td>
                </tr>
            {/volist}
        </table>
        {$data->render()}
    </div>
</body>
</html>